home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
avril20
/
example1.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-03
|
564b
|
29 lines
/* EXAMPLE1 -- a cube */
/* Written by Bernie Roehl, April 1994 */
#include "avril.h"
void main()
{
vrl_Object *cube;
vrl_Light *light;
vrl_Camera *camera;
vrl_SystemStartup();
cube = vrl_ObjectCreate(vrl_PrimitiveBox(100, 100, 100, NULL));
vrl_ObjectRotY(cube, float2angle(45));
light = vrl_LightCreate();
vrl_LightRotY(light, float2angle(45));
vrl_LightRotX(light, float2angle(45));
camera = vrl_CameraCreate();
vrl_CameraRotX(camera, float2angle(45));
vrl_CameraMove(camera, 0, 500, -500);
vrl_SystemRun();
}